<template>
    <Modal width="1000" v-model="visibel" :title="`${title}`" :footer-hide="true" @on-ok="ok" @on-cancel="cancel">
        <DataList ref="dataList" :dictObj="dictObj" :staticParams="{dictType: dictObj.dictType}" v-if="visibel"/>
    </Modal>
  </template>
  
  <script>
    import DataList from './index.vue'
  
  export default {
    components: {
        DataList
    },
    data() {
      return {
        title: '',
        visibel: false,
        dictObj: {}
      };
    },
    methods: {
      show(record = {}) {
        this.title = record.dictName+'-字典数据';
        this.dictObj = { ...record };
        this.$nextTick(()=>{
            this.visibel = true;
        })
      },
      cancel() {
        this.cancel = false;
      },
      ok() {
        this.cancel = false;
      },
    },
  };
  </script>
  
  <style></style>
  